<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格练习</title>
</head>
<body>
    <!-- 表格的全部内容   -->
    <table border="1px" style="border-collapse: collapse;">
        <caption>成绩表</caption>
        <!--表格行-->
        <tr>
            <!--th标题单元格 加粗且文本居中-->
            <th>序号</th>
            <th>姓名</th>
            <th>成绩</th>
        </tr>
        <tr>
            <td>1</td>
            <td>伟超喜欢丽颖</td>
            <td>88</td>
        </tr>
        <tr>
            <td>2</td>
            <td>亚强</td>
            <td>88</td>
        </tr>
    </table>

    <table border="1px" style="border-collapse: collapse;">
        <tr>
            <td colspan="2">1-1</td>
            <!--<td>1-2</td>-->
            <td>1-3</td>
            <td rowspan="3">1-4</td>
        </tr>
        <tr>
            <td>2-1</td>
            <td>2-2</td>
            <td>2-3</td>
<!--            <td>2-4</td>-->
        </tr>
        <tr>
            <td>3-1</td>
            <td>3-2</td>
            <td>3-3</td>
<!--            <td>3-4</td>-->
        </tr>
    </table>
    <table border="1px" style="border-collapse: collapse;">
        <caption>购物车</caption>
        <tr>
            <th>商品编号</th>
            <th>商品名称</th>
            <th>商品价格</th>
        </tr>
        <tr>
            <td>1</td>
            <td>小米Air</td>
            <td>5877</td>
        </tr>
        <tr>
            <td>2</td>
            <td>华为遥遥领先</td>
            <td>8877</td>
        </tr>
        <tr>
            <td>总价:</td>
            <td colspan="2">10000</td>
        </tr>
    </table>
</body>
</html>